package com.eyedsion.his.web.entity.businessdata;

import com.eyedsion.his.web.entity.common.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.print.attribute.standard.MediaSize;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 彭长云
 * @Description:
 * @date 2018/12/14 14:19
 */
@Entity
@Table(name = "op_settlement_record")
public class OpSettlementRecord extends BaseEntity{
    @Id
    private String code;//结算记录PK [CODE, VARCHAR2, 32]
    private String registerCode;//挂号序号 [REGISTER_CODE, VARCHAR2, 32]
    private String patientCode;//病人编码 [PATIENT_CODE, VARCHAR2, 32]
    private String medcardNo;//医疗卡号 [MEDCARD_NO, VARCHAR2, 32]
    private String patCostcateCode;//病人费别 [PAT_COSTCATE_CODE, VARCHAR2, 32]
    private String settlementBillType;//结算单类别; 1正常收费 2患者退费 3补打发票[整张票全退再收] [SETTLEMENT_BILL_TYPE, VARCHAR2, 1]
    private String settlementType;//结算类型; 1门诊挂号 2门诊收费 [SETTLEMENT_TYPE, VARCHAR2, 1]
    private BigDecimal costTotal;//费用合计 [COST_TOTAL, NUMBER, 14.4]
    private BigDecimal overallMoney;//统筹支付;医保门诊报销金额，通过医保接口获取金额 [OVERALL_MONEY, NUMBER, 14.4]
    private BigDecimal preferTotal;//优惠合计 [PREFER_TOTAL, NUMBER, 14.4]
    private BigDecimal totalPreferential;//总额优惠 [TOTAL_PREFERENTIAL, NUMBER, 14.4]
    private String insCate;//保险类别 [INS_CATE, VARCHAR2, 32]
    private String medicareNo;//医疗保险号 [MEDICARE_NO, VARCHAR2, 32]
    private String remark;//描述备注 [REMARK, VARCHAR2, 2000]
    private String tstatus;//状态;1-已结算 2-已作废 [TSTATUS, VARCHAR2, 1]
    private String beforeSettlementCode;//原结算单编码;针对退费和补打发票的情况 [BEFORE_SETTLEMENT_CODE, VARCHAR2, 32]
    private String createUser;//创建人;操作员 [CREATE_USER, VARCHAR2, 32]
    private String createUserDepart;//创建人科室 [CREATE_USER_DEPART, VARCHAR2, 32]
    private Date createTime;//创建时间;结算日期 [CREATE_TIME, DATE, 7]
    private Date updateTime;//更新时间 [UPDATE_TIME, DATE, 7]

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    public String getPatientCode() {
        return patientCode;
    }

    public void setPatientCode(String patientCode) {
        this.patientCode = patientCode;
    }

    public String getMedcardNo() {
        return medcardNo;
    }

    public void setMedcardNo(String medcardNo) {
        this.medcardNo = medcardNo;
    }

    public String getPatCostcateCode() {
        return patCostcateCode;
    }

    public void setPatCostcateCode(String patCostcateCode) {
        this.patCostcateCode = patCostcateCode;
    }

    public String getSettlementBillType() {
        return settlementBillType;
    }

    public void setSettlementBillType(String settlementBillType) {
        this.settlementBillType = settlementBillType;
    }

    public String getSettlementType() {
        return settlementType;
    }

    public void setSettlementType(String settlementType) {
        this.settlementType = settlementType;
    }

    public BigDecimal getCostTotal() {
        return costTotal;
    }

    public void setCostTotal(BigDecimal costTotal) {
        this.costTotal = costTotal;
    }

    public BigDecimal getOverallMoney() {
        return overallMoney;
    }

    public void setOverallMoney(BigDecimal overallMoney) {
        this.overallMoney = overallMoney;
    }

    public BigDecimal getPreferTotal() {
        return preferTotal;
    }

    public void setPreferTotal(BigDecimal preferTotal) {
        this.preferTotal = preferTotal;
    }

    public BigDecimal getTotalPreferential() {
        return totalPreferential;
    }

    public void setTotalPreferential(BigDecimal totalPreferential) {
        this.totalPreferential = totalPreferential;
    }

    public String getInsCate() {
        return insCate;
    }

    public void setInsCate(String insCate) {
        this.insCate = insCate;
    }

    public String getMedicareNo() {
        return medicareNo;
    }

    public void setMedicareNo(String medicareNo) {
        this.medicareNo = medicareNo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTstatus() {
        return tstatus;
    }

    public void setTstatus(String tstatus) {
        this.tstatus = tstatus;
    }

    public String getBeforeSettlementCode() {
        return beforeSettlementCode;
    }

    public void setBeforeSettlementCode(String beforeSettlementCode) {
        this.beforeSettlementCode = beforeSettlementCode;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateUserDepart() {
        return createUserDepart;
    }

    public void setCreateUserDepart(String createUserDepart) {
        this.createUserDepart = createUserDepart;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
